package moc;

public class WeekDemo {
    public static void main(String[] args) {
        String name = Week.FIRDAY.name();
        System.out.println(name);
        System.out.println("-------------");

        int i1 = Week.MONDAY.ordinal();
        int i2 = Week.TUESDAY.ordinal();
        int i3 = Week.WEDNESDAY.ordinal();
        int i4 = Week.THURSDAY.ordinal();
        int i5 = Week.FIRDAY.ordinal();
        System.out.println(i1);
        System.out.println(i2);
        System.out.println(i3);
        System.out.println(i4);
        System.out.println(i5);
        System.out.println("-------------");

        int i = Week.FIRDAY.compareTo(Week.SUNDAY);
        System.out.println(i);

        Week wednesday = Enum.valueOf(Week.class, "WEDNESDAY");
        System.out.println(wednesday);

        Week[] values = Week.values();
        for (Week value : values) {
            System.out.println(value);
        }
    }
}
